import { createApp } from "vue";
import "./style/index.css";
// import pinia from "./store/index";
import router from "./router";
import pinia from "./store/index";
import App from "./App.vue";
// import ElementPlus from "element-plus";
// import "element-plus/dist/index.css";
import "./style/index.css";

// 公共组件
// 搜索栏
import Search from "./components/Search.vue";
// 首页楼层组件
import Floor from "./components/Floor.vue";
import "@/permission";
import head from "./components/header.vue";
import footer from "./components/footer.vue";
import swiper from "./components/swiper.vue";
import MyPagination from "./components/pagination.vue";
const app = createApp(App);

//自定义组件
app
  .component("Head", head)
  .component("Footer", footer)
  .component("swiper", swiper)
  .component('MyPagination',MyPagination);

app
  .use(pinia)
  .use(router)
  .component("Search", Search)
  .component("Floor", Floor)
  .mount("#app");
